sendEMailNotification function doubt.

I am just new to DXL.

I have written this script to send a email notification.
But it’s not working.

string pFromDescription = "puri.ajju@gmail.com"
string pkpTo = "puri.ajju@gmail.com"
string pSubject = "I am in."
string pMessage = "I am a new user facing issues in this script."

Date tDate = dateOf(intOf(today))

string sEmailNotification = ""
sEmailNotification sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )
if (!null sEmailNotification){
outFile = append ".\\EmailNotification.txt"
outFile << tDate "\n"
outFile << "Email Notification Message" sEmailNotification "\n" "******" "\n"
close outFile
}

Please let me know where I am missing.
As per the reference manual:
"Issues a notification e-mail to a specific address.
The communication takes place using SMTP, and depends on the appropriate Database Properties
fields being correctly set up prior to its use (SMTP Mail Server and Mail Account)."

I didn’t get even the above mentioned lines from the reference manual.

Please help.
DOORS_AJ - Tue May 11 19:53:16 EDT 2010

Re: sendEMailNotification function doubt.
llandale - Wed May 12 12:32:37 EDT 2010

You seem to be missing an equal sign between sEmailNotification and sendEMailNotification.
sEmailNotification = sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )

Don't know about what you are writing (without declaring 'Stream' outFile), but it works when you print sEmailNotification.

  • Louie

Re: sendEMailNotification function doubt.
DOORS_AJ - Thu May 13 14:08:30 EDT 2010

llandale - Wed May 12 12:32:37 EDT 2010
You seem to be missing an equal sign between sEmailNotification and sendEMailNotification.
sEmailNotification = sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )

Don't know about what you are writing (without declaring 'Stream' outFile), but it works when you print sEmailNotification.

  • Louie

Hi Louie,

You are right. I did a syntax mistake there.
I modified it:

Stream outFile
string pFromDescription = "puri.ajju@gmail.com"
string pkpTo = "puri.ajju@gmail.com"
string pSubject = "I am in."
string pMessage = "I am a new user facing issues in this script."

Date tDate = dateOf(intOf(today))

string sEmailNotification = ""
sEmailNotification = sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )
if (!null sEmailNotification){
outFile = append ".\\EmailNotification.txt"
outFile << tDate "\n"
outFile << "Email Notification Message" sEmailNotification "\n" "******" "\n"
close outFile
}

I am trying to send email notification to the user with email id "puri.ajju@gmail.com" from user "puri.ajju@gmail.com" with
subject as "I am in." and message content as "I am a new user facing issues in this script.".
I am generating a output file also with name EmailNotification.txt if there is any error in email notification.
The EmailNotification.txt file getting generated ( which means there is an error) and the error is something like this:
"Broadcast MessageNo mail server has been specified."

Can you please let me know what this error message means and resolution too?

Thanks and Regards,
AJ

Re: sendEMailNotification function doubt.
llandale - Thu May 13 15:48:29 EDT 2010

DOORS_AJ - Thu May 13 14:08:30 EDT 2010
Hi Louie,

You are right. I did a syntax mistake there.
I modified it:

Stream outFile
string pFromDescription = "puri.ajju@gmail.com"
string pkpTo = "puri.ajju@gmail.com"
string pSubject = "I am in."
string pMessage = "I am a new user facing issues in this script."

Date tDate = dateOf(intOf(today))

string sEmailNotification = ""
sEmailNotification = sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )
if (!null sEmailNotification){
outFile = append ".\\EmailNotification.txt"
outFile << tDate "\n"
outFile << "Email Notification Message" sEmailNotification "\n" "******" "\n"
close outFile
}

I am trying to send email notification to the user with email id "puri.ajju@gmail.com" from user "puri.ajju@gmail.com" with
subject as "I am in." and message content as "I am a new user facing issues in this script.".
I am generating a output file also with name EmailNotification.txt if there is any error in email notification.
The EmailNotification.txt file getting generated ( which means there is an error) and the error is something like this:
"Broadcast MessageNo mail server has been specified."

Can you please let me know what this error message means and resolution too?

Thanks and Regards,
AJ

Oh. You must configure your DOORS database to use Email. Its non trivial. This thread talks about how to set it up.

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14445841&#14445841

  • Louie

Re: sendEMailNotification function doubt.
DOORS_AJ - Thu Jun 17 19:05:17 EDT 2010

llandale - Thu May 13 15:48:29 EDT 2010
Oh. You must configure your DOORS database to use Email. Its non trivial. This thread talks about how to set it up.

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14445841&#14445841

  • Louie

Hi All,

I setup my database for SMTP Server setting and email Id.
The email setting given in the help document is proper.

But I am not able to send email notifications still using STMP Setting on DOORS Client.
As simple script mentioned below it self is not working.
string sub_var="Module LLLL"
string msg_var="description of mail"
string my_list="puri.ajju@gmail.com"
sendEMailNotification("DOORS",my_list,sub_var,msg_var)

I have made sure:
1). I have Admin Access on DOORS.
2). Setting is right as per help manual.
3). Syntax of DXL is correct.

Please suggest any possible reason why I am not able to send notifications.

Thanks and Regards,
AJ

Re: sendEMailNotification function doubt.
Z_T - Sat Jun 19 20:08:58 EDT 2010

DOORS_AJ - Thu Jun 17 19:05:17 EDT 2010
Hi All,

I setup my database for SMTP Server setting and email Id.
The email setting given in the help document is proper.

But I am not able to send email notifications still using STMP Setting on DOORS Client.
As simple script mentioned below it self is not working.
string sub_var="Module LLLL"
string msg_var="description of mail"
string my_list="puri.ajju@gmail.com"
sendEMailNotification("DOORS",my_list,sub_var,msg_var)

I have made sure:
1). I have Admin Access on DOORS.
2). Setting is right as per help manual.
3). Syntax of DXL is correct.

Please suggest any possible reason why I am not able to send notifications.

Thanks and Regards,
AJ

Try and put your valid email address for the "Mail Account" when you setup your SMTP Mail Server in the database properties.